package com.wolfpire.video.controller;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
/**
 * 线程池
 * @author xp
 *
 */
public class ThreadPool {
	
	public static ExecutorService exec = Executors.newFixedThreadPool(3); 
	public static synchronized void trans(String videoPath,String targetPath){ 
	    ThreadTransCode trans=new ThreadTransCode(videoPath,targetPath); 
	    exec.execute(trans); 
	} 
}
